{include file="public/head"/}
  
  <body>
    <div class="x-body">
        <form class="layui-form" action="{:url('admin/Proposal/proposalAdd')}" method="post" enctype="multipart/form-data">
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>所属小区:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="community_id">
                        <option value=""><------选择小区------></option>
                        {foreach $communitylist as $com}
                        <option value="{$com.id}">{$com.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>  
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>类型:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="type">
                        <option><------选择类型------></option>
                        <option value="1">投诉</option>
                        <option value="2">建议</option>
                        <option value="3">表扬</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>建议内容:
                </label>
                <div class="layui-input-inline">
                    <textarea name="content" placeholder="请输入内容" class="layui-textarea" style="width: 300px;"></textarea>
                </div>
            </div>
          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button  class="layui-btn" lay-filter="add" lay-submit="">
                  提交建议
              </button>
          </div>
      </form>
    </div>
    <script>
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            
            //执行一个laydate实例
            laydate.render({
            elem: '#start' //指定元素
            ,type: 'datetime'
            ,format: 'yyyy-MM-dd HH:mm:ss'
            });
        }); 
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>